package com.chaodev.base.dto;

import com.chaodev.base.model.Menu;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("菜单拓展对象")
public class MenuDTO extends Menu {

    @ApiModelProperty("父级菜单名称")
    private String parentMenuName;
    @ApiModelProperty("菜单类型名称")
    private String menuTypeName;
    @ApiModelProperty("区域名称")
    private String areaName;
    @ApiModelProperty("节点ID")
    private String nodeId;
    @ApiModelProperty("节点名称")
    private String textName;
    @ApiModelProperty("图标")
    private String icon;
    @ApiModelProperty("路径")
    private String url;
    @ApiModelProperty("菜单图标")
    private String menuIcon;
    private String menuCode;
    private String parentCode;

    public String getMenuCode() {
        return menuCode;
    }

    public void setMenuCode(String menuCode) {
        this.menuCode = menuCode;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
    }

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }

    public String getTextName() {
        return textName;
    }

    public void setTextName(String textName) {
        this.textName = textName;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        if (areaName.equals("") || areaName == null) {
            this.areaName = "";
        } else {
            this.areaName = areaName;
        }
    }

    public String getMenuTypeName() {
        return menuTypeName;
    }

    public void setMenuTypeName(String menuTypeName) {
        if (menuTypeName.equals("") || menuTypeName == null) {
            this.menuTypeName = "";
        } else {
            this.menuTypeName = menuTypeName;
        }
    }

    public String getParentMenuName() {
        return parentMenuName;
    }

    public void setParentMenuName(String parentMenuName) {
        if (parentMenuName.equals("") || parentMenuName == null) {
            this.parentMenuName = "";
        } else {
            this.parentMenuName = parentMenuName;
        }
    }

    @Override
    public String toString() {
        return "MenuDTO{" +
                "parentMenuName='" + parentMenuName + '\'' +
                ", menuTypeName='" + menuTypeName + '\'' +
                ", areaName='" + areaName + '\'' +
                ", nodeId='" + nodeId + '\'' +
                ", textName='" + textName + '\'' +
                ", icon='" + icon + '\'' +
                ", url='" + url + '\'' +
                ", menuIcon='" + menuIcon + '\'' +
                '}';
    }
}
